package com.ctshk.rpc.localfun.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.enums.ScenicTicketStatus;
import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.localfun.dto.LocalFunResourceDownBox;
import com.ctshk.rpc.localfun.dto.LocalFunResourceTicketDTO;
import com.ctshk.rpc.localfun.req.LocalFunResourceTicketReq;

import java.util.List;

/**
 * @Description
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/3/29
 */
public interface ILocalFunResourceTicketService {
    /**
     * 票号列表查询
     * @param scenicResourceTicketReq
     * @return
     */
    PageResponse<LocalFunResourceTicketDTO> queryList(LocalFunResourceTicketReq scenicResourceTicketReq);

    /**
     * 下拉选择框
     * @param productId
     * @return
     */
    Result<List<LocalFunResourceDownBox>> downBox(Long productId);

    /**
     * 批量售卖/批量退回
     * @param ids
     * @param unsold 2 已出售 3 已退回
     * @return
     */
    Result<Long> updateStatus(List<Long> ids, ScenicTicketStatus unsold);

    /**
     * 生产票号
     * @param productId
     * @return
     */
    Result<Long> createTicket(Long productId);
}
